class AddFieldsToRequestAndComplaintComplaint < ActiveRecord::Migration
  def self.up
    add_column :request_and_complaint_complaints, :email, :string
    add_column :request_and_complaint_complaints, :phone, :string
    add_column :request_and_complaint_complaints, :department, :integer
    add_column :request_and_complaint_complaints, :province, :integer
    add_column :request_and_complaint_complaints, :district, :integer
    add_column :request_and_complaint_complaints, :address, :text
    add_column :request_and_complaint_complaints, :name, :string
     add_column :request_and_complaint_complaints, :dni, :string
  end

  def self.down
    remove_column :request_and_complaint_complaints, :address
    remove_column :request_and_complaint_complaints, :district
    remove_column :request_and_complaint_complaints, :province
    remove_column :request_and_complaint_complaints, :department
    remove_column :request_and_complaint_complaints, :phone
    remove_column :request_and_complaint_complaints, :email
    remove_column :request_and_complaint_complaints, :name
    remove_column :request_and_complaint_complaints, :dni
  end
end
